package com.xiyu.service.dal.job;

import com.xiyu.service.framework.job.core.handler.JobHandler;
import com.xiyu.service.service.market.MarketTaskService;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.quartz.DisallowConcurrentExecution;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@DisallowConcurrentExecution
public class MarketTaskJob implements JobHandler {
    @Resource
    MarketTaskService marketTaskService;

    @Override
    public String execute(String param) throws Exception {
        log.info("开始执行定时发送营销任务");
        marketTaskService.taskJobExec();
        log.info("结束执行定时发送营销任务");
        return "";
    }
}
